package com.jh.paymentchannel.repository;

import com.jh.paymentchannel.pojo.PaymentOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author Yichuan
 * @version 1.0
 */
@Repository
public interface PaymentOrderRepository extends JpaRepository<PaymentOrder, Long>,
        JpaSpecificationExecutor<PaymentOrder>, PaymentOrderRepositoryCustom {

    /**
     * 根据商户订单号查询指定订单信息
     *
     * @param outTradeNo 商户订单号
     * @return 返回订单信息
     */
    PaymentOrder findByOutTradeNo(String outTradeNo);
}
